package lec07.am;

import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
import java.util.Vector;

//5 1 3 1 6 3
//4 1 1 1 1
//6 1 2 2 1 5 6
public class P06a {
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);

		while (cin.hasNext()) {
			int n = cin.nextInt();
			Vector<Integer> v=new Vector<>();
			for(int i=0;i<n;i++)
				v.add(cin.nextInt());
			Collections.sort(v);
			Vector<Integer> b=new Vector<>();
			for(Integer i:v)
			{
				//if(b.contains(i))//O(n)
				//if(Collections.binarySearch(b, i)>=0)//O(log(n))
				if(b.get(b.size()-1)==i)//O(1)
					continue;
				b.add(i);
			}
			System.out.println(b);
			
		}

		cin.close();

	}


}
